<?php


namespace Xiaoguai\DesignPattern\DP010\Handler;


use Xiaoguai\DesignPattern\DP010\AbstractHandler;

class Handler1 extends AbstractHandler
{
    public function handleRequest(string $request)
    {
        if ($request == 'handler1') {
            return __CLASS__ . '::' . __METHOD__;
        }
        return $this->next->handleRequest($request);
    }
}